package com.ebt.m.data.rxModel.api;

import com.ebt.m.data.bean.ResponseProductTag;

import java.util.List;

import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;
import io.reactivex.Observable;

/**
 * Created by Damon.Han on 2016/12/9 0009.
 *
 * @author Damon
 */

public interface ProductApiOld {
    /**
     * 根据产品id获取标签
     *
     * @param productIds-逗号分隔的产品id字符串
     * @return
     */
    @GET("product/tags/product/{productIds}")
    Observable<List<ResponseProductTag>> getProductTagsByProductIds(@Header("Authorization") String authorization, @Path("productids") String productIds);

    /**
     * 根据品牌id获取标签
     *
     * @param brandid-逗号分隔的产品id字符串
     * @return
     */
    @GET("product/tags/brand/{brandid}")
    Observable<List<ResponseProductTag>> getProductTagsByBrand(@Header("Authorization") String authorization, @Path("brandid") String brandid);


    @GET("brand/productorder/{companyid}")
    Observable<List<String>> getRecommondProductOrder(@Header("Authorization") String authorization, @Path("companyid") String companyid);

}
